home *** CD-ROM | disk | FTP | other *** search
- Path: fc.hp.com!news
- From: koren@hpsrk.fc.hp.com (Steve Koren)
- Newsgroups: comp.sys.amiga.programmer
- Subject: WritePixelArray vs. ClipBlit vs. ...
- Date: 11 Jan 1996 09:20:54 -0700
- Organization: HP Fort Collins Site
- Sender: koren@hpsrk.fc.hp.com
- Message-ID: <oj6ka2yity1.fsf@hpsrk.fc.hp.com>
- NNTP-Posting-Host: hpsrk.fc.hp.com
- X-Newsreader: Gnus v5.0.9
-
-
- A little experimentation revealed that on my (Z-II 040/25) graphics
- card, WritePixelArray8 is about twice as fast as ClipBlit when both are
- talking to a 256 color screen. No surprise there. ClipBlit is much
- faster for the Amiga native gfx modes (again no surprise). And then we
- have a CyberGfx call for dealing with truecolor modes that is better
- than either of the above two if you have a truecolor screen, but doesn't
- work on 8 bit screens at all.
-
- So now, I am writing a program, and I have the following choices:
-
- A) Do minimum work, run on all modes, optimize for native modes:
- -> Always use ClipBlit
-
- B) Do minimum work, run on all modes, optimize for graphics cards
- -> Always use WritePixelArray8
-
- C) Do minimum work, *only* run on truecolor 16/24 bit modes:
- -> Use the cybergfx call
-
- D) Do maximum work, optimize for each case:
- -> Use ClipBlit on native screenmodes
- -> Use WritePixelArray8 on CyberGfx 8 bit screenmodes
- -> Use the CyberGfx call on truecolor 16/24 bit screenmodes
-
- This is annoying. Is there any way to do case D) easier than what I am
- thinking?
-
- Also, if I have allocated a bitmap as a "friend bitmap" of a 8 bit
- cybergfx mode, I would almost have expected ClipBlit to be as fast as
- WritePixelArray8. But it isn't even close. Why not? In fact, I
- haven't seen the friend bitmap to make any difference at all. I can use
- it or not use it, and in both cases ClipBlit is slower than
- WritePixelArray8.
-
- - steve
-